package com.example.mybatis;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.logging.Log;

@Slf4j
public class LogImpl implements Log {
    public LogImpl(String clazz){}

    @Override
    public boolean isDebugEnabled() {
        return true;
    }

    @Override
    public boolean isTraceEnabled() {
        return true;
    }

    @Override
    public void error(String s, Throwable e) {
        e.printStackTrace(System.err);
    }

    @Override
    public void error(String s) {
        log.error(s);

    }

    @Override
    public void debug(String s) {
        log.debug(s);
    }

    @Override
    public void trace(String s) {
        log.trace(s);

    }

    @Override
    public void warn(String s) {
        log.warn(s);
    }
}
